package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceRoseRankPrizeCondition 魅力值排名奖励配置表
type DanceRoseRankPrizeCondition struct {
	Id             int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivityId     int64          `json:"activityId" gorm:"column:activity_id;type:bigint;default:0;not null;comment:魅力值活动id"`
	Rank           int64          `json:"rank" gorm:"column:rank;type:bigint;default:0;not null;comment:排名"`
	ElementNo      int64          `json:"elementNo" gorm:"column:element_no;type:bigint;default:0;not null;comment:奖品编号"`
	ElementNum     int64          `json:"elementNum" gorm:"column:element_num;type:bigint;default:0;not null;comment:奖品数量"`
	ValidityPeriod int64          `json:"validityPeriod" gorm:"column:validity_period;type:bigint;default:0;not null;comment:奖品有效期"`
	CreatedId      int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`
	UpdateId       int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`
	CreatedAt      time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt      time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt      gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
